<!DOCTYPE HTML>
<html>
<head>
    {include file='common_header'}
    <title>商品二级分类列表</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span>商品管理<span class="c-gray en">&gt;</span> 商品二级分类列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href='javascript:location.replace(location.href="{:Url('showerlist')}");' title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <a href="javascript:;" onclick="layer_show('添加分类','{:url('showeradd',array('id'=>$father_id))}','500','400')" class="btn btn-primary radius">
            <i class="Hui-iconfont">&#xe600;</i> 添加二级分类
        </a>
            <!--<a href="?del=1" class="btn btn-warning radius"><i class="Hui-iconfont">&#xe6e2;</i>  回收站</a>-->
        </span>
        <div style="float: right">
            <input type="text" class="input-text" style="width:250px" placeholder="输入分类名称" id="keywords" value="{$Think.get.keyword}">
            <button type="button" class="btn btn-success" onclick="reload($('#keywords').val())"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="9">{$names}分类列表</th>
            </tr>
            <tr class="text-c">
                <th width="40">ID</th>
                <th width="40">父类名称</th>
                <th width="90">分类名称</th>
                <th width="90">分类图片</th>
                <th width="90">添加时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="$list" id="v"}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.names}</td>
                <td>{$v.classify_name}</td>
                <td style="height:50px ">
                    {if condition="$v['classify_image']"}
                    <img src="__UPLOADS__{$v['classify_image']}" onclick="previewPictures('__UPLOADS__'+'{$v.classify_image}')" height="50px">
                    {/if}
                </td>
                <td>{$v.create_time|date="Y-m-d H:i:s",###}</td>
                <td class="td-manage">
                    <a title="编辑" href="javascript:;" onclick="layer_show('编辑{$v.names}二级分类','{:url('showeredit',array('id'=>$v['id']))}','550','400')" class="btn btn-warning  radius" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a>
                    <a title="删除" href="javascript:;" onclick="delectOne('{:url('del_two',array('id'=>$v['id']))}',this)" class="btn btn-danger radius" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="page">
            {$page}
        </div>
    </div>
    <!--_footer 作为公共模版分离出去-->
    {include file='common_footer'}
    <!--/_footer 作为公共模版分离出去-->
</div>
</body>
<script>
    function reload(obj) {
        goUrl('?keyword=' + obj);
    }

</script>
</html>